package com.controller;

import com.dao.KefangDao;
import com.utils.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/kefang")
public class KefangController {

    @Resource
    KefangDao dao;


    @RequestMapping("/list")
    public R aVoid() {
        return R.ok().put("data", dao.selectList());
    }

}
